﻿using System;
using System.Collections.Generic;
using System.Text;

namespace game1
{
    class Player
    {
        public Weapons weapon;

        public Weapons ChoiseWeaponDialog() 
        {
            string readed;

            //Console.Clear();
            Console.WriteLine("Введите число предмет:");
            

            Console.WriteLine("{0} - Камень ", Weapons.stone);
            Console.WriteLine("{0} - Бумага", Weapons.paper);
            Console.WriteLine("{0} - Ножницы", Weapons.scissors);

            Console.Write("Ваш выбор: " );
            
            readed = Console.ReadLine();


            if (readed.Length < 1) return Weapons.noneSelected;

            int choisen = Convert.ToInt32(readed, 10);

            weapon = (Weapons)choisen;

            Console.WriteLine("Вы выбрали: {0} {1}", choisen, weapon);

            //switch (chosen) 
            //{
            //    case Weapons.paper:
            //        weapon = pa
            //        break;
            //}

            return (Weapons)weapon;
        }
    }
}
